package com.obsidian.free.slideshow;

import android.app.Activity;
import android.appwidget.AppWidgetManager;
import android.content.Intent;
import android.os.Bundle;

public class SlideshowConfigureLarge extends Activity {
   int appWidgetId;
   
   @Override
   protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      Intent in = getIntent();
      appWidgetId = in.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID);
      Intent intent = new Intent(this, SlideshowConfigureImages.class);
      intent.putExtra("size", SlideshowUpdateService.SIZE_LARGE);
      intent.putExtra("appWidgetId", appWidgetId);
      intent.putExtra("type", SlideshowConfigure.TYPE_LOCAL);
      startActivityForResult(intent, 1);
   }
   
   @Override
   protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      final Intent intent = new Intent();
      intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
      setResult(resultCode, intent);
      finish();
   }
}
